<?PHP
$url = "https://chart.googleapis.com/chart?chs=".$_GET['qr_size']."&cht=qr&chl=".urlencode($_GET['qr_url']);
$img = file_get_contents($url);
header("Content-type:image/jpeg");
header("Content-Disposition:attachment;filename=qr_code.jpg");
echo $img;
//include("mpdf/mpdf.php");
//$mpdf=new mPDF('s');
//$mpdf->SetDisplayMode('fullpage');
//$mpdf->simpleTables = true;
//$mpdf->WriteHTML($output);   // Separate Paragraphs  defined by font
////$mpdf->Output();
//$content = $mpdf->Output("", "S");

//header("Content-type:application/pdf");
//header("Content-Disposition:attachment;filename=flyer.pdf");
//echo $content;
?>